package com.onlineproject.dao;

import java.util.List;

import com.onlineproject.action.PageModel;
import com.onlineproject.model.Student;

public interface StudentDaoInterface {

	public PageModel findAllStudent(int offset, int pagesize);
	
    
    public boolean save(Student transientInstance);
    
    public boolean update(Student transientInstance);
    
	public void delete(Student persistentInstance);
    
    public Student findById( java.lang.String id);  
    
    public List findByExample(Student instance);  
    
    public List findByProperty(String propertyName, Object value);

	public List findByPassword(Object password);
	
	public List findByActivateCode(Object activateCode);
	
	public List findByName(Object name);
	
	public List findBySex(Object sex);
	
	public List findByFaculty(Object faculty);
	
	public List findByGrade(Object grade);
	
	public List findByPhone(Object phone);
	
	public List findByIntroduce(Object introduce);
	
	public List findBySkill(Object skill);
	
	public List findByExperience(Object experience);
	
	public List findByWill(Object will);
	
	public List findByPic(Object pic);
	
	public List findByEvaluate(Object evaluate);

	public List findAll();
	
    public Student merge(Student detachedInstance);

    public void attachDirty(Student instance);
    
    public void attachClean(Student instance);
}
